package com.emptyMe.org.mapper;

import com.emptyMe.org.domain.Department;
import com.emptyMe.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface DepartmentMapper {
    void save(Department d);

    void remove(Long id);

    void update(Department d);

    Department loadById(Long id);

    List<Department> loadAll();

    /**
     * 分页查询
     *
     */
    // 查询总条数
    Long queryCount(DepartmentQuery query);
    // 查询当前页数
    List<Department> queryData(DepartmentQuery query);

    List<Department> searchData(DepartmentQuery query);
}
